package com.qingcloud.base.remote.admin;

import io.swagger.annotations.ApiModelProperty;
import lombok.Data;

import java.io.Serializable;
import java.util.ArrayList;
import java.util.List;

/**
 * 事件类型字段
 */
@Data
public class MessageEventTypeField implements Serializable {
    private static final long serialVersionUID = 1L;

    private Integer id;

    @ApiModelProperty(value = "事件类型ID")
    private Integer typeId;

    @ApiModelProperty(value = "属性节点ID")
    private String nodeId;

    @ApiModelProperty(value = "属性父ID")
    private String parentId;

    @ApiModelProperty(value = "字段名称")
    private String fieldName;

    @ApiModelProperty(value = "属性描述")
    private String fieldDesc;

    @ApiModelProperty(value = "值类型 1-数字 2-字符串 3-对象 4-数组")
    private String valueType;

    @ApiModelProperty(value = "资源类型 1-文本 2-图片地址 3-图片Base64 4-视频地址")
    private String resourceType;

    @ApiModelProperty(value = "是否参数报警计算")
    private Boolean isCal;

    @ApiModelProperty("子节点")
    private List<MessageEventTypeField> children = new ArrayList<>();

}
